package Arrays.mydemo3;

import java.util.Arrays;

public class Test1 {
    public static void main(String[] args) {
        int[] arr = {10, 2, 3, 5, 6, 1, 7, 8};
        Arrays.sort(arr);

        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i]+" ");
        }
    }
}
